<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-category_id" data-rule="required" data-source="gcategory/index"  class="form-control selectpage" name="row[category_id]" type="text" value="{$row.category_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_name" class="form-control" name="row[goods_name]" type="text" value="{$row.goods_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_desc" class="form-control" name="row[goods_desc]" type="text" value="{$row.goods_desc|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pirce')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pirce" class="form-control" name="row[pirce]" type="text" value="{$row.pirce|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('V_pirce')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-v_pirce" class="form-control" name="row[v_pirce]" type="text" value="{$row.v_pirce|htmlentities}">
        </div>
    </div>
     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('分销价')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fx_pirce" class="form-control" name="row[fx_pirce]" type="text" value="{$row.fx_pirce|htmlentities}">
        </div>
    </div>
     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('直推分佣百分比')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zt_rate" class="form-control" name="row[zt_rate]" type="text" value="{$row.zt_rate|htmlentities}">
        </div>
    </div>
     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('间推分佣百分比')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jt_rate" class="form-control" name="row[jt_rate]" type="text" value="{$row.jt_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell" class="form-control" name="row[sell]" type="number" value="{$row.sell|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Good_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-good_images" class="form-control" size="50" name="row[good_images]" type="text" value="{$row.good_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-good_images" class="btn btn-danger faupload" data-input-id="c-good_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-good_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-good_images" class="btn btn-primary fachoose" data-input-id="c-good_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-good_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-good_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gooddetails')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-gooddetails" class="form-control editor" rows="5" name="row[gooddetails]" cols="50">{$row.gooddetails|htmlentities}</textarea>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
